filechooserwidget: Avoid an uninitialized value
authorTimm Bäder <mail@baedert.org>
Thu, 15 Oct 2020 04:57:13 +0000 (06:57 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 22 Oct 2020 15:46:33 +0000 (17:46 +0200)
commitf6ebc067677a21a4927a00086dc04351fc2f3ec6
tree00e42aae41d8d741956054ed8c614c8e10ca4da8
parent3db5e15bde8d677537cff6f44b44f353f63d3c3a
filechooserwidget: Avoid an uninitialized value

If the operation mode is OPERATION_MODE_RECENT and we end up in the
'goto file_entry' case, we don't set info.result. Then later after
calling check_save_entry, is_empty is TRUE which causes a goto out and
here we then try to use info.result, which is uninitialized.

Initialize info.result before doing all this.

Found by scan-build
gtk/gtkfilechooserwidget.c